<!DOCTYPE html>
<html lang="en">

<head>

    <!-- Basic -->
    <meta charset="UTF-8" />

    <title>自夏学院 | Fire - Admin Template</title>

    <!-- Mobile Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

    <!-- Import google fonts -->

    <!-- Favicon and touch icons -->
    <link rel="shortcut icon" href="../assets/ico/favicon.ico" type="image/x-icon" />
    <link rel="apple-touch-icon" href="../assets/ico/apple-touch-icon.png" />
    <link rel="apple-touch-icon" sizes="57x57" href="../assets/ico/apple-touch-icon-57x57.png" />
    <link rel="apple-touch-icon" sizes="72x72" href="../assets/ico/apple-touch-icon-72x72.png" />
    <link rel="apple-touch-icon" sizes="76x76" href="../assets/ico/apple-touch-icon-76x76.png" />
    <link rel="apple-touch-icon" sizes="114x114" href="../assets/ico/apple-touch-icon-114x114.png" />
    <link rel="apple-touch-icon" sizes="120x120" href="../assets/ico/apple-touch-icon-120x120.png" />
    <link rel="apple-touch-icon" sizes="144x144" href="../assets/ico/apple-touch-icon-144x144.png" />
    <link rel="apple-touch-icon" sizes="152x152" href="../assets/ico/apple-touch-icon-152x152.png" />

    <!-- start: CSS file-->

    <!-- Vendor CSS-->
    <link href="../assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../assets/vendor/skycons/css/skycons.css" rel="stylesheet" />
    <link href="../assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="../assets/vendor/css/pace.preloader.css" rel="stylesheet" />

    <!-- Plugins CSS-->
    <link href="../assets/plugins/jquery-ui/css/jquery-ui-1.10.4.min.css" rel="stylesheet" />
    <link href="../assets/plugins/scrollbar/css/mCustomScrollbar.css" rel="stylesheet" />
    <link href="../assets/plugins/bootkit/css/bootkit.css" rel="stylesheet" />
    <link href="../assets/plugins/magnific-popup/css/magnific-popup.css" rel="stylesheet" />
    <link href="../assets/plugins/fullcalendar/css/fullcalendar.css" rel="stylesheet" />
    <link href="../assets/plugins/jqvmap/jqvmap.css" rel="stylesheet" />

    <!-- Theme CSS -->
    <link href="../assets/css/jquery.mmenu.css" rel="stylesheet" />

    <!-- Page CSS -->
    <link href="../assets/css/style.css" rel="stylesheet" />
    <link href="../assets/css/add-ons.min.css" rel="stylesheet" />

    <!-- end: CSS file-->

    <!-- Head Libs -->
    <script src="../assets/plugins/modernizr/js/modernizr.js"></script>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

<!-- Start: Header -->
<% include public.ejs %>
            <!-- Sidebar Footer-->
            <div class="sidebar-footer" style="display: none;">

            </div>
            <!-- End Sidebar Footer-->
        </div>
        <!-- End Sidebar -->

        <!-- Main Page -->
        <div class="main ">
            <!-- Page Header -->
            <div class="page-header">
                <div class="pull-left">
                    <ol class="breadcrumb visible-sm visible-md visible-lg">
                        <li><a href="index.html"><i class="icon fa fa-home"></i>Home</a></li>
                        <li class="active"><i class="fa fa-laptop"></i>自夏学院</li>
                    </ol>
                </div>
                <div class="pull-right">
                    <h2>自夏学院</h2>
                </div>
            </div>
            <!-- End Page Header -->

            <div class="col-lg-12">
                <div class="panel panel-default bk-bg-white">
                    <div class="panel-heading bk-bg-white">
                        <h6><i class="fa fa-table red"></i>二级分类列表 <a href="AddPrimaryClassification.html">添加二级分类</a></h6>
                        <div class="panel-actions">
                            <a href="#" class="btn-minimize"><i class="fa fa-caret-up"></i></a>
                            <a href="#" class="btn-close"><i class="fa fa-times"></i></a>
                        </div>
                    </div>
                    <div class="panel-body">
                        <div class="table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>名称</th>
                                    <th>二级分类</th>
                                    <th>操作</th>
                                </tr>
                                </thead>

                                <tbody>

                                <form method="post" action="/web/PrimaryClassification.html">
                                    <% if(classa.length==null||classa.length==""){ %>
                                    <% for(var i=0;i<1;i++) {%>
                                    <td><%=classa[i].classBId%></td>

                                    <td><%=classa[i].classBName%></td>

                                    <td>
                                        <a show-delete-id=<%=classa[i].classAId%> href="PrimaryClassification.html?act=delete&classAId=<%=classa[i].classAId%>" class="btn btn-w-m btn-danger">删除</a>
                                        <a  class="btn btn-w-m btn-primary">编辑</a>
                                    </td>
                                    </tr>
                                    <% }%>
                                    <%} else {%>
                                    <% for(var i=0;i<classa.length;i++) {%>
                                    <td><%=classa[i].classBId%></td>

                                    <td><%=classa[i].classBName%></td>
                                    <td><%=classa[i].classAName%></td>
                                    <td>
                                        <a show-delete-id=<%=classa[i].classAId%> href="TheSecondary.html?act=delete&classBId=<%=classa[i].classBId%>" class="btn btn-w-m btn-danger" onclick="return confirm('您是否要删除当前数据');">删除</a>
                                        <a  href="updateTheSecondary.html?classBId=<%=classa[i].classBId%>"   class="btn btn-w-m btn-primary">编辑</a>
                                    </td>
                                    </tr>
                                    <% }%>

                                    <%}%>
                                </form>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-sm-12 col-md-6">
                <div class="dataTables_paginate paging_bs_normal" id="datatable-default_paginate">

                    <ul class="pagination" id="classmanagementpage">
                        <% if(parseInt(page)<=1){ %>
                        <li class="prev"><a href="/web/TheSecondary.html?page=<%=1 %>"><span class="fa fa-chevron-left"></span></a></li>
                        <% }else{ %>
                        <li class="prev"><a href="/web/TheSecondary.html?page=<%=(parseInt(page)-1) %>"><span class="fa fa-chevron-left"></span></a></li>
                        <% } %>
                        <% for(var k=0;k<page;k++){ %>
                        <li><a href="TheSecondary.html?page=<%=k+1%>"><%=k+1%></a></li>
                        <%}%>
                        <li class="next"><a href="/web/TheSecondary.html?page=<%=(parseInt(page)+1) %>"><span class="fa fa-chevron-right"></span></a></li>
                    </ul>
                </div>
            </div>

            <!-- End Main Page -->

            <!-- Footer -->

            <!-- End Footer -->

        </div>
    </div>
    <!--/container-->

    <div class="clearfix"></div>

    <!-- start: JavaScript-->

    <!-- Vendor JS-->
    <script src="../assets/vendor/js/jquery.min.js"></script>
    <script src="../assets/vendor/js/jquery-2.1.1.min.js"></script>
    <script src="../assets/vendor/js/jquery-migrate-1.2.1.min.js"></script>
    <script src="../assets/vendor/bootstrap/js/bootstrap.min.js"></script>
    <script src="../assets/vendor/skycons/js/skycons.js"></script>
    <script src="../assets/vendor/js/pace.min.js"></script>

    <!-- Plugins JS-->
    <script src="../assets/plugins/jquery-ui/js/jquery-ui-1.10.4.min.js"></script>
    <script src="../assets/plugins/scrollbar/js/jquery.mCustomScrollbar.concat.min.js"></script>
    <script src="../assets/plugins/bootkit/js/bootkit.js"></script>
    <script src="../assets/plugins/magnific-popup/js/magnific-popup.js"></script>
    <script src="../assets/plugins/moment/js/moment.min.js"></script>
    <script src="../assets/plugins/fullcalendar/js/fullcalendar.js"></script>
    <script src="../assets/plugins/flot/js/jquery.flot.min.js"></script>
    <script src="../assets/plugins/flot/js/jquery.flot.pie.min.js"></script>
    <script src="../assets/plugins/flot/js/jquery.flot.resize.min.js"></script>
    <script src="../assets/plugins/flot/js/jquery.flot.stack.min.js"></script>
    <script src="../assets/plugins/flot/js/jquery.flot.time.min.js"></script>
    <script src="../assets/plugins/flot-tooltip/js/jquery.flot.tooltip.js"></script>
    <script src="../assets/plugins/chart-master/js/Chart.js"></script>
    <script src="../assets/plugins/jqvmap/jquery.vmap.js"></script>
    <script src="../assets/plugins/jqvmap/data/jquery.vmap.sampledata.js"></script>
    <script src="../assets/plugins/jqvmap/maps/jquery.vmap.world.js"></script>
    <script src="../assets/plugins/sparkline/js/jquery.sparkline.min.js"></script>

    <!-- Theme JS -->
    <script src="../assets/js/jquery.mmenu.min.js"></script>
    <script src="../assets/js/core.min.js"></script>
    <!-- end: JavaScript-->

</body>

</html>